package com.pizza.model;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Class Formule, entite du modele. Non utilisé.
 *
 */
public class Formule implements Serializable {

	private int id;
	
	private float prix;
	
	private String description;
	
	private ArrayList<Article> articles;
	
	private ArrayList<Pizza> pizzas;

	public Formule(int id, float prix, String description) {
		super();
		this.id = id;
		this.prix = prix;
		this.description = description;
		articles = new ArrayList<Article>();
		pizzas = new ArrayList<Pizza>();
	}

	public ArrayList<Article> getArticles() {
		return articles;
	}

	public void setArticles(ArrayList<Article> articles) {
		this.articles = articles;
	}
		
	public boolean addArticles(Article article) {
		return this.articles.add(article);
	}

	public boolean removeArticles(Article article) {
		return this.articles.remove(article);
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public ArrayList<Pizza> getPizzas() {
		return pizzas;
	}

	public void setPizzas(ArrayList<Pizza> pizzas) {
		this.pizzas = pizzas;
	}
	
	public boolean addPizza(Pizza pizza) {
		return this.pizzas.add(pizza);
	}

	public boolean removePizza(Pizza pizza) {
		return this.pizzas.remove(pizza);
	}
	
	public float getPrix() {
		return prix;
	}

	public void setPrix(float prix) {
		this.prix = prix;
	}
	
	
	
}
